<div id="content">
  <div class="top1">
  <div class="left"></div>
  <div class="right"></div>
  <div class="center">
    <div class="heading"><?php echo $heading_title;?></div>
  </div>
</div>
<div class="middle">
       <?php if ($_SESSION['warning']) { ?>
<div class="warning"><?php echo $_SESSION['warning']; ?></div>
<?php }  unset($_SESSION['warning']);?>
<div class="group2">
        <table class="list_for_mem">
        <thead>
          <tr>
            <td width="1" style="text-align: center;">Mã</td>
            <td class="left">
              <a href="<?php echo $sort_country; ?>"><?php echo "Tên tài liệu "; ?></a>
            </td>
            <td class="date">
              <a href="<?php echo $sort_name; ?>"><?php echo "Tác giả"; ?></a>
              </td>
              
            <td class="center"><?php echo "Tải về"; ?></td>
          </tr>
        </thead>
        <tbody>
          <?php if ($list_giaoan) { ?>
          <?php foreach ($list_giaoan as $giaoan) { ?>
          <tr>
            <td style="text-align: center;"><?php echo $giaoan['giao_an_id'];?></td>
            <td class="left"><a href="index.php?module=giaoan&act=view&id=<?php echo $giaoan['giao_an_id'];?>"><?php echo $giaoan['ten_giao_an'];?></a></td>
            <td class="left"><?php echo $giaoan['tac_gia'];?> </td>
            <td class="center">
             <?php if ($giaoan['file']) { ?>
            <a href= "javascript:confirmDelete('index.php?module=giaoan&act=download&id=<?=$giaoan['giao_an_id'];?>')"  ><?php echo "Tải về"; ?></a>
             <?php } else { ?>
             X
             <?php } ?>
            </td>
          </tr>
          <?php } ?>
          <?php } else { ?>
          <tr>
            <td class="center" colspan="5"><?php echo $text_no_results; ?></td>
          </tr>
          <?php } ?>
        </tbody>
      </table>
       <div class="pagination"><?php echo $pagination; ?></div>
       </form>
      </div>
      </div>
    <div class="bottom">
	<div class="left"></div>
	<div class="right"></div>
	<div class="center"></div>
	</div>

 </div>
 
 
<!-- and main -->
